package com.bootdo_jpa.system.service.impl;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Service;

import com.bootdo_jpa.system.dao.ResearchRepository;
import com.bootdo_jpa.system.domain.ResearchDO;
import com.bootdo_jpa.system.service.ResearchService;
import com.bootdo_jpa.common.service.base.AbsCommonService;

@Service
public class ResearchServiceImpl extends AbsCommonService<ResearchDO> implements ResearchService {
	
	@Autowired
	private ResearchRepository researchRepository;
	
	@Override
	@Transactional
	public void deleteByIds(Long... ids) {
		researchRepository.deleteByIdIn(ids);
	}

	@Override
	public JpaRepository<ResearchDO, Long> getDao() {
		return researchRepository;
	}

	@Override
	public JpaSpecificationExecutor<ResearchDO> getDao2() {
		return researchRepository;
	}
	
}
